using System;
using System.Collections.Generic;

namespace Sustainalytics.ESGRatings.Computing.Entities
{
    public class CompanyScores : CompanyIndicators<IndicatorScore>
    {
        public Rating OverallRating { get; set; }

        public Rating EnvironmentRating { get; set; }

        public Rating SocialRating { get; set; }

        public Rating GovernanceRating { get; set; }

        public Rating PreparednessRating { get; set; }

        public Rating DisclosureRating { get; set; }

        public Rating QualitativePerformanceRating { get; set; }

        public Rating QuantitativePerformanceRating { get; set; }

        public Guid? DefaultMatrixId { get; set; }


        public CompanyScores(Guid companyId, IEnumerable<IndicatorDefaultScore> indicatorDefaultScores)
        {
            IndicatorsData = indicatorDefaultScores;
            CompanyId = companyId;
        }
    }


    public class Rating
    {
        public float Score { get; set; }

        public float Weight { get; set; }

        public Rating(float score, float weight)
        {
            Score = score;
            Weight = weight;

        }
    }
}